#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"

int main()
{

	/*mylist::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);

	mylist::list<int>::iterator it = lt.begin();
	while (it != lt.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	mylist::list<int>::reverse_iterator rit = lt.rbegin();
	while (rit != lt.rend())
	{
		cout << *rit << " ";
		++rit;
	}
	cout << endl;

	it = lt.begin();
	while (it != lt.end())
	{
		*it *= 2;
		++it;
	}
	cout << endl;

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;

	lt.push_front(10);
	lt.push_front(20);
	lt.push_front(30);
	lt.push_front(40);

	lt.pop_back();
	lt.pop_back();

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;*/
	mylist::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	const mylist::list<int> l1(l.begin(),l.end());
	auto cit = l1.begin();
	cout << *cit++;
	cout << *cit++;
	cout << *cit;
	return 0;
}